<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h3>上传文件1</h3>
    <!--前端页面  必须post enctype="multipart/form-data" -->
    <form action="/upload1" method="post" enctype="multipart/form-data">
        用户名:<input type="text" name="username"><br>
        密码:<input type="text" name="password"><br>
        头像:<input type="file" name="avtar"><br>
        身份证:<input type="file" name="idcard"><br>
        <input type="submit" value="点击我上传信息">
    </form>

    <h3>上传文件2</h3>
    <!--前端页面  必须post enctype="multipart/form-data" -->
    <form action="/file/upload2" method="post" enctype="multipart/form-data">
        用户名:<input type="text" name="username"><br>
        密码:<input type="text" name="password"><br>
        头像:<input type="file" name="avatar"><br>
        身份证:<input type="file" name="idcard"><br>
        <input type="submit" value="点击我上传信息">
    </form>
</body>
</html>